Stacked Charts
Silverlight Elements offers stacked versions of bar, line, area, spline and spline area charts. In a stacked chart, each series ‘stacks’ on top of the one before instead of being displayed alongside or overlaid on it. This makes a stacked chart a good way to display data where the total over the series is important as well as the individual values. For example, if each series represents a sales region and each data point represents a time period and the sales during that time period, then the total value across the series is the total sales across all regions during the time period. Since the trend of total sales is likely to be of interest to users, a stacked graph might be a good choice here.
To create a stacked bar chart, add multiple StackedBarSeries to a Chart control:
<ms:Chart Title="Sales" Width="600" Height="400"> <ms:StackedBarSeries ItemsSource="{Binding [0]}" XBinding="{Binding Quarter}" YBinding="{Binding Amount}" SeriesBrush="Blue" Title="North Island" /> <ms:StackedBarSeries ItemsSource="{Binding [1]}" XBinding="{Binding Quarter}" YBinding="{Binding Amount}" SeriesBrush="Red" Title="South Island" /> </ms:Chart>